//
//  RMPNetCloudVodPlayer.h
//  rmplayer
//
//  Created by lujiongjian on 2023/11/9.
//

#import <UIKit/UIKit.h>
#import "RMPlayerStats.h"
#import "RMPlayerDelegate.h"


RTC_OBJC_EXPORT
@interface RMPNetCloudVodPlayer : NSObject

@property(nonatomic, weak) id<RMPlayerDelegate> delegate;

+ (instancetype)createWithConfig:(RMPNetPlayerConfig *)config;

- (UIView *)playerView;

- (BOOL)setCloudSource:(NSString *)url meta:(NSString *)meta mode:(RMPNetCloudVodPlayMode)mode;

- (BOOL)appendCouldPlaylist:(NSString *)url meta:(NSString *)meta;

- (long)getTotalDuration;

- (BOOL)muteRemoteAudio:(BOOL)mute;

- (BOOL)start;

- (void)stop;

- (void)pause;

- (void)resume;

- (void)seek:(long)offsetSec;

@end
